﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="TProductType_PIMInfo_Manage.aspx.cs" Inherits="ProductManage_ANTProductManage_TProductType_PIMInfo_Manage" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div style=" width:100%;">
                <div>
                    <br />
                    天线各产品类型交调测试信息列表：        
                </div>
                <div style="width: 100%; text-align:center; border:0px solid black; margin: 0 auto;">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" Width="100%" 
                        AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                        GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
                        onrowcancelingedit="GridView1_RowCancelingEdit" 
                        onrowcommand="GridView1_RowCommand" onrowdatabound="GridView1_RowDataBound" 
                        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
                        onrowupdating="GridView1_RowUpdating" PageSize="20" 
                        DataKeyNames="ProductTypeID,TestItemName,TestFre,TestPort,TestAngle">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:TemplateField HeaderText="产品类型">
                                <EditItemTemplate>
                                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="测试项目">
                                <EditItemTemplate>
                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("TestItemName") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("TestItemName") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="TestFre" HeaderText="测试频率" />
                            <asp:BoundField DataField="TestPort" HeaderText="测试端口" />
                            <asp:BoundField DataField="TestAngle" HeaderText="测试角度" />
                            <asp:CommandField HeaderText="更改" ShowEditButton="True" />
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                            <asp:ButtonField CommandName="Insert" HeaderText="新增" Text="新增" />
                        </Columns>
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <EmptyDataTemplate>
                            <asp:DetailsView ID="DetailsView1" runat="server" 
                                AutoGenerateInsertButton="True" AutoGenerateRows="False" BackColor="White" 
                                BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                                CellSpacing="1" DefaultMode="Insert" GridLines="None" Height="50px" 
                                oniteminserting="DetailsView1_ItemInserting" 
                                onmodechanging="DetailsView1_ModeChanging">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <Fields>
                                    <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                    <asp:BoundField DataField="TestItemName" HeaderText="测试项目" />
                                    <asp:BoundField DataField="TestFre" HeaderText="测试频率" />
                                    <asp:BoundField DataField="TestPort" HeaderText="测试端口" />
                                    <asp:BoundField DataField="TestAngle" HeaderText="测试角度" />
                                </Fields>
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                                <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            </asp:DetailsView>
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>                
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

